﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User.Master" AutoEventWireup="true" CodeBehind="Auction.aspx.cs" Inherits="OnlineAuction.WebForm4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width:99%;">
        
        <tr>
                <td style="width: 154px">
                    Product Name:
                </td>
                <td style="margin-left: 40px;">
                    <asp:TextBox ID="txttensanpham" runat="server" Width="190px" TabIndex="1"></asp:TextBox>
                </td>
            </tr>
        
        <tr>
                <td style="width: 154px">
                    Image</td>
                <td style="margin-left: 40px;">
                    <asp:FileUpload ID="FileUpload1" runat="server" TabIndex="2" />
                </td>
            </tr>
        
        <tr>
        <td style="width: 154px">
                    Start Date:<td>
                    &nbsp;<asp:TextBox ID="txtNgayBD" runat="server" Height="22px" ReadOnly="false" 
                        Width="150px" BackColor="White" TabIndex="3"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                        ControlToValidate="txtNgayBD" ErrorMessage="Ngày mở phiên">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txtNgayBD" ErrorMessage="Ngày dạng(dd/mm/yyyy)" ValidationExpression="([1-9]|0[1-9]|[12][0-9]|3[01])[- /.]([1-9]|0[1-9]|1[012])[- /.][0-9]{4}$" 
                        Display="Dynamic" ForeColor="Red">(Format: dd/mm/yyyy)</asp:RegularExpressionValidator>
                    <br />
                </td>
            </tr>
        <tr>
                <td style="width: 154px">
                    End Date:</td>
                <td>
                    &nbsp;<asp:TextBox ID="txtNgayKT" runat="server" Height="22px" Width="150px" 
                        BackColor="White" TabIndex="4"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                        ControlToValidate="txtNgayKT" ErrorMessage="Ngày đóng phiên">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                        ControlToValidate="txtNgayKT" Display="Dynamic" 
                        ErrorMessage="(Format: dd/mm/yyyy)" 
                        
                        ValidationExpression="([1-9]|0[1-9]|[12][0-9]|3[01])[- /.]([1-9]|0[1-9]|1[012])[- /.][0-9]{4}$" 
                        ForeColor="Red">(Format: dd/mm/yyyy)</asp:RegularExpressionValidator>
                    <br />
                </td>
            </tr>
        <tr>
                <td style="width: 154px">
                    Price Product:
                <td>
                    <asp:TextBox ID="txtgiasanpham" runat="server" Height="22px" Width="150px" 
                        TabIndex="5"></asp:TextBox>
&nbsp;(USD)<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="txtgiasanpham" ErrorMessage="gia san pham">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                        ControlToValidate="txtgiasanpham" Display="Dynamic" 
                        ValidationExpression="[-+]?[0-9]*\.?[0-9]*" ForeColor="Red">You input wrong price product value</asp:RegularExpressionValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" 
                        ControlToValidate="txtgiasanpham" ErrorMessage="Bước giá" 
                        ValidationExpression="[-+]?[0-9]*\.?[0-9]*" ForeColor="Red">Must is number</asp:RegularExpressionValidator>
                </td>
            </tr>
        <tr>
                <td style="width: 154px">
                    Start As:</td>
                <td>
                    <asp:TextBox ID="txtgiakhoidiem" runat="server" Height="22px" Width="150px" 
                        TabIndex="6"></asp:TextBox>
&nbsp;(USD)<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="txtgiakhoidiem" ErrorMessage="Giá sàn">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                        ControlToValidate="txtgiakhoidiem" 
                        ValidationExpression="[-+]?[0-9]*\.?[0-9]*" ForeColor="Red">You input wrong Start As value</asp:RegularExpressionValidator>
                &nbsp;<asp:Label ID="lblErrorGia" runat="server" ForeColor="Red"></asp:Label>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" 
                        ControlToValidate="txtgiakhoidiem" ErrorMessage="Bước giá" 
                        ValidationExpression="[-+]?[0-9]*\.?[0-9]*" ForeColor="Red">Must is number</asp:RegularExpressionValidator>
                </td>
            </tr>
            </tr>
                <tr>
                <td style="width: 154px; height: 29px;">
                    Category:</td>
                <td style="height: 29px">
                    <asp:DropDownList ID="DropDownListcategory" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
        <tr>
                <td style="width: 154px">
                    &nbsp;</td>
                <td style="text-align: left;">
                    <asp:Button ID="btnDaugia" runat="server"  Text="Auction" 
                        Height="30px" Width="150px" TabIndex="8" 
                        onclick="btnDaugia_Click" Font-Bold="True"/>                     
                </td>
            </tr>
        <tr>
                <td style="width: 154px">
                    &nbsp;</td>
                <td style="text-align: left;">
                    <asp:LinkButton ID="LinkButton3" runat="server" 
                        PostBackUrl="Home.aspx" TabIndex="9">Home page</asp:LinkButton>
                </td>
            </tr>
                    
    </table>
</asp:Content>
